package com.wfg.common;


import com.wfg.common.msg.Invocation;

/**
 * @author wufagang
 * @description
 * @date 2023年05月10日 08:36
 */
public class HttpProtoacl implements Protocal {
    @Override
    public void start(Url url) {
        HttpServer httpServer = new HttpServer();
        httpServer.start(url.getHostName(),url.getPort());
    }

    @Override
    public String send(Url url, Invocation invocation) {
        HttpClient client = new HttpClient();
        return client.send(url.getHostName(),url.getPort(),invocation);
    }


}
